package base;

import com.google.gson.Gson;

import java.io.Serializable;

/**
 * 《一个Android工程的从零开始》
 *
 * @author 半寿翁
 * @博客：
 * @CSDN http://blog.csdn.net/u010513377/article/details/74455960
 * @简书 http://www.jianshu.com/p/1410051701fe
 */

public class BaseBean implements Serializable {
    /**
     * code : 200
     * msg : 短信验证码发送成功
     * count : 1
     * data : []
     */

    private int code;
    public int ok;
    private String call_number;
    private String msg;
    public String messages;
    private int count;
    private Object data;
    private Object canteen;

    public Object getCanteen() {
        return canteen;
    }

    public void setCanteen(Object canteen) {
        this.canteen = canteen;
    }

    public String getCall_number() {
        return call_number;
    }

    public void setCall_number(String call_number) {
        this.call_number = call_number;
    }

    /**
     * 获取当前Bean对象类名
     *
     * @return 类名字符串
     */

    protected String getName() {
        return getClass().getSimpleName();
    }

    public String toString() {
        return new Gson().toJson(this);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
